package com.project.mapper;

import com.project.entity.AssetType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【t_zctype】的数据库操作Mapper
 * @createDate 2023-01-17 03:50:53
 * @Entity com.project.entity.AssetType
 */
public interface AssetTypeMapper extends BaseMapper<AssetType> {
    /**
     * 根据id查询所有数据
     *
     * @param id
     * @return
     */
    public AssetType findById(String id);

    /**
     * 根据name查询所有数据
     *
     * @param name
     * @return
     */
    public AssetType findByName(String name);

    /**
     * 查询全部资产类别信息
     *
     * @author Leo高洋
     * @create 2023-01-18 1:32
     */
    public List<AssetType> getAll();

    /**
     * 获取资产类别总数
     *
     * @return
     */
    public Integer getCount();
}




